import request from "@/utils/request";

export const login = (data) => {
    return request({
        url: '/v1_0/authorizations',
        method: 'POST',
        data
    })
}

export const getUserInfor = () => {
    return request({
        url: '/v1_0/user/profile',
    })
}

// 编辑用户个人资料
export function editInfo(data) {
    return request({
        url: '/v1_0/user/profile',
        method: 'PATCH',
        data
    })
}

export function editImg(data) {
    return request({
        url: '/v1_0/user/photo',
        method: 'PATCH',
        data
    })
}

